<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateCompteBanqueTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateCompteBanqueLabel_id}" for="id" />
                    <h:inputText id="id" value="#{compteBanqueController.selected.id}" title="#{bundle.CreateCompteBanqueTitle_id}" />
                    <h:outputLabel value="#{bundle.CreateCompteBanqueLabel_banque}" for="banque" />
                    <h:selectOneMenu id="banque" value="#{compteBanqueController.selected.banque}" title="#{bundle.CreateCompteBanqueTitle_banque}" >
                        <f:selectItems value="#{banqueController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.CreateCompteBanqueLabel_solde}" for="solde" />
                    <h:inputText id="solde" value="#{compteBanqueController.selected.solde}" title="#{bundle.CreateCompteBanqueTitle_solde}" />
                    <h:outputLabel value="#{bundle.CreateCompteBanqueLabel_description}" for="description" />
                    <h:inputText id="description" value="#{compteBanqueController.selected.description}" title="#{bundle.CreateCompteBanqueTitle_description}" />
                    <h:outputLabel value="#{bundle.CreateCompteBanqueLabel_identifiant}" for="identifiant" />
                    <h:inputText id="identifiant" value="#{compteBanqueController.selected.identifiant}" title="#{bundle.CreateCompteBanqueTitle_identifiant}" />
                    <h:outputLabel value="#{bundle.CreateCompteBanqueLabel_nomCompte}" for="nomCompte" />
                    <h:inputText id="nomCompte" value="#{compteBanqueController.selected.nomCompte}" title="#{bundle.CreateCompteBanqueTitle_nomCompte}" />
                    <h:outputLabel value="#{bundle.CreateCompteBanqueLabel_typeCompte}" for="typeCompte" />
                    <h:inputText id="typeCompte" value="#{compteBanqueController.selected.typeCompte}" title="#{bundle.CreateCompteBanqueTitle_typeCompte}" />
                </h:panelGrid>
                <br />
                <h:commandLink action="#{compteBanqueController.create}" value="#{bundle.CreateCompteBanqueSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{compteBanqueController.prepareList}" value="#{bundle.CreateCompteBanqueShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.CreateCompteBanqueIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
